<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Vlib_Constant
 *
 * @author QuynhCV
 */
class Vlib_Constant {

    /** class of admin */
    const ADMIN_CLASS = 100;

    /** マネジャー */
    const MANAGER_CLASS = 50;

    /** 普通ユーザ */
    const USER_CLASS = 1;

    /** Access denied page */
    const ACCESS_DENIED_PAGE = 1;

    /** errorPage */
    const ERROR_PAGE = 2;

    const ERROR_NOT_FOUND = 3;

    const CON_CHAR = '~';
    /** resulf of method when perform is successful */
    const VLIB_OK = 1;

    /** resulf of method when perform fail relate to DB Exception */
    const VLIB_ERR_DB_EXCEPTION = -1;

    /** resulf of method when perform fail relate to Exception other DB Exception */
    const VLIB_ERR_EX_OTHER = -2;
    
    /** resulf of method when perform fail relate to Exception Session Timeout or request login */
    const VLIB_ERR_SESSION_TIMEOUT = -4;

    /** resulf of "validate" method */
    const VLIB_ERR_VALIDATION = -3;
    
    /** resulf of "validate" method */
    const VLIB_NOT_OK = 0;

    /** run application by command line */
    const VLIB_CLI = 'cli';

    /** encode base64 */
    const VLIB_BASE64 = 'base64';

    /** encode quoted-printable */
    const VLIB_QUOTE_PRINT = 'quoted-printable';

    /** encode UTF-8 */
    const VLIB_UTF8 = 'UTF-8';
}
?>
